package date_;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * 输出今年的国庆节（10.1）是周几
 */
public class DaTeTest05 {
    public static void main(String[] args) throws Exception{
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.YEAR,2022);
        cal.set(Calendar.MONTH,9);
        cal.set(Calendar.DAY_OF_MONTH,1);
        Date time = cal.getTime();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日 E");
        String format = simpleDateFormat.format(time);
        System.out.println(format);


    }
}
